package org.basis.algorithm.graph.common;

import java.util.HashMap;
import java.util.HashSet;

/**
 * 通用图结构
 *
 * @author Mr_wenpan@163.com 2021/12/22 21:24
 */
public class Graph {
    /**
     * 图的点集合，key为点的value
     */
    public HashMap<Integer, Node> nodes;
    /**
     * 图的边集合
     */
    public HashSet<Edge> edges;

    public Graph() {
    }

    public Graph(HashMap<Integer, Node> nodes, HashSet<Edge> edges) {
        this.nodes = nodes;
        this.edges = edges;
    }
}
